//flex
.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-none {
  flex: none;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justif-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.justify-items-start {
  justify-items: start;
}

.justify-items-end {
  justify-items: end;
}

.justify-items-center {
  justify-items: center;
}

.justify-items-stretch {
  justify-items: stretch;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

// 浮动
.float-right {
  float: right;
}

.float-left {
  float: left;
}

.float-none {
  float: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// 元素类型
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

// text拓展
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.text-bold {
  font-weight: 700;
}

.text-600 {
  font-weight: 600;
}

.text-normal {
  font-weight: 400;
}

.text-line-through {
  text-decoration: line-through;
}

.overflow-y {
  overflow-y: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.border-box {
  box-sizing: border-box;
}

.z-9999 {
  z-index: 9999;
}

.z-1 {
  z-index: 1;
}

.radius-circle {
  border-radius: 50%;
}

.line-height-1 {
  line-height: 1.3rem;
}

.line-height-2 {
  line-height: 2.5rem;
}

.overflow-y {
  overflow: hidden auto;
}

// 单边-细边框
.hair-border-top {
  position: relative;
}

.hair-border-top::after {
  content: '';
  width: 100%;
  border-top: 1rpx solid #888989;
  transform: scaleY(0.5);
  position: absolute;
  bottom: 0;
  left: 0;
}

// 没有必填的表单项,需要加上这个class，用来占位
// custom-label-class="required-label-placeHold"
.required-label-placeHold {
  padding-left: 12px !important;
}

.suffix-icon-placeHold {
  padding-right: 18rpx !important;
}

//超出一行省略
.ellipsis {
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 显示省略号 */
}

//超出2行省略
.ellipsis-multi-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-multi-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* 限制行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

//超出5行省略
.ellipsis-multi-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* 限制行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}